package ltd.newbee.mall.dao;

import ltd.newbee.mall.entity.Hall;
import ltd.newbee.mall.entity.Schedule;
import ltd.newbee.mall.util.PageQueryUtil;

import java.util.Date;
import java.util.List;

public interface ScheduleMapper {
    int deleteByPrimaryKey(Integer scheduleId);

    int insert(Schedule record);

    int insertSelective(Schedule record);

    Schedule selectByPrimaryKey(Integer scheduleId);

    int updateByPrimaryKeySelective(Schedule record);

    int updateByPrimaryKey(Schedule record);

    List<Schedule> selectAll(PageQueryUtil pageUtil);

    int getTotalSchedule();

    List<Hall> selectHall(PageQueryUtil pageUtil, Date newtime, String formertime,int hallId);

    List<Schedule> selectGroupFilm(int filmId,String time);

    List<Schedule> selectFilm(int filmId,String newtime,String lasttime);

    int insertHall(Schedule schedule);

    int deleteSchedule(Integer[] ids);
}